import request from '@/utils/request';

// 查询登录日志详细
export function queryById(id) {
  return request({
    url: '/monitor/loginInfo/queryById/' + id,
    method: 'get',
  });
}

// 分页查询登录日志列表
export function pageList(query) {
  return request({
    url: '/monitor/loginInfo/pageList',
    method: 'get',
    params: query,
  });
}

// 删除登录日志
export function deleteByIds(ids) {
  return request({
    url: '/monitor/loginInfo/deleteByIds/' + ids,
    method: 'delete',
  });
}

// 清理登录日志
export function cleanLoginInfo() {
  return request({
    url: '/monitor/loginInfo/clean',
    method: 'delete',
  });
}
